home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / vector.lha / vector / enum.h < prev    next >
C/C++ Source or Header  |  1991-11-23  |  368b  |  16 lines

  1. #ifndef _ENUM_H
  2. #define _ENUM_H
  3.  
  4. /* Portable way of producing class-scoped enumerated type names.
  5.  * Enum(class,enum) produces class::enum for 2.1 and later compilers,
  6.  *  enum for 2.0 compilers. For now, just assume Saber-C is 2.0, everything
  7.  *  else is 2.1 or greater.
  8.  */
  9. #ifndef SABER_C
  10. #define Enum(c,e) c::e
  11. #else
  12. #define Enum(c,e) e
  13. #endif
  14.  
  15. #endif /*_ENUM_H*/
  16.